package com.future.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.future.domain.Result;
import com.future.domain.Tag;

import java.util.List;

public interface TagService extends IService<Tag> {
    Result saveTag(String name);
    Long selectTagIdByName(String name);
    List<Long> selectTagIdsByNames(List<String> tagNames);

    Result selectByPage(Integer pageNum, Integer pageSize);
    Result deleteTag(Long id);
    Result updateTag(Tag tag);
    Result selectTagById(Long tagId);
    Result selectTagNameByIds(List<Long> tagIds);
}
